package com.dzj.fishingcommunity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 点赞记录类，用于表示点赞记录的基本信息
 */
@Data
@TableName("like_record")
@Schema(description = "点赞记录类，用于表示点赞记录的基本信息")
public class LikeRecord {
    /**
     * 帖子ID，主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "帖子ID，主键")
    private Integer postId;

    /**
     * 用户ID，主键
     */
    @TableField("user_id")
    @Schema(description = "用户ID，主键")
    private Integer userId;

    /**
     * 总点赞数
     */
    @TableField("total_likes")
    @Schema(description = "总点赞数")
    private Integer totalLikes;

    /**
     * 取消点赞数
     */
    @TableField("cancelled_likes")
    @Schema(description = "取消点赞数")
    private Integer cancelledLikes;
}